package com.higold.cloud.mvp.model

import com.higold.cloud.mvp.model.bean.shopDeatail.ShopDetail
import com.higold.cloud.net.RetrofitManager
import com.higold.cloud.rx.scheduler.SchedulerUtils
import io.reactivex.Observable

/**
 *    author : lxz
 *    date   : 2019/10/12 14:49
 *    desc   :
 */

class ShopDetailModel {

    /**
     * 获取 ShopDetail
     */
    fun getShopDetail(shopId : Int): Observable<ShopDetail> {

        return RetrofitManager.service.requestShopDetail(shopId)
                .compose(SchedulerUtils.ioToMain())
    }

}